package com.carnation._synchronized_utility;

import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock;

public class ConditionTest {

    public static void main(String[] args) throws InterruptedException {
        ReentrantLock lock = new ReentrantLock();
        Condition condition = lock.newCondition();
        condition.await();
        condition.signalAll();

        ThreadLocal local = new ThreadLocal();
        local.set("a");
        System.out.println(local.get());

        synchronized (local) {
        }

    }


}
